package com.lu.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;

import java.io.Serializable;

/**
 * <p>
 * 关键词匹配
 * </p>
 *
 * @author zhanglu
 * @since 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class KeywordMatchSimple extends Model<KeywordMatchSimple> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 场景代码
     */
    private String code;

    /**
     * 原值
     */
    private String source;

    /**
     * 目标值
     */
    private String target;

    /**
     * 拼音
     */
    private String sourcePy;

    /**
     * 拼音缩写
     */
    private String sourcePyFl;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Getter
    @AllArgsConstructor
    public enum Code{
        ORDER_DELIVERY("订单物流")
        ;
        private String description;
    }

}
